package com.gxcc3.ygps.common.core.domain.entity;


import com.gxcc3.ygps.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

public class SysCompany extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 企业主键 自增*/
    private Long id;

    /** 企业id 业务使用，雪花算法生成,使用string，防止js丢失精度*/
    private String companyId;

    /** 企业名称*/
    private String companyName;

    /** 企业所属监管单位id*/
    private Long deptId;

    /** 企业所属监管单位名称*/
    private String deptName;

    /** 统一信用代码*/
    private String uniformCode;

    /** 联系电话*/
    private String contractPhone;

    /** 许可证编号*/
    private String licenseNo;

    /** 联系人*/
    private String contractPeople;

    /** 企业状态，1可用，0不可用*/
    private String status;

    /** 地址*/
    private String address;

    /** 是否开通账号*/
    private Integer accountFlag;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @NotBlank(message = "企业名称不能为空")
    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    @NotNull(message = "企业所属监管单位不能为空")
    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    @NotBlank(message = "统一信用代码不能为空")
    public String getUniformCode() {
        return uniformCode;
    }

    public void setUniformCode(String uniformCode) {
        this.uniformCode = uniformCode;
    }

    public String getContractPhone() {
        return contractPhone;
    }

    public void setContractPhone(String contractPhone) {
        this.contractPhone = contractPhone;
    }

    @NotBlank(message = "许可证编号不能为空")
    public String getLicenseNo() {
        return licenseNo;
    }

    public void setLicenseNo(String licenseNo) {
        this.licenseNo = licenseNo;
    }

    public String getContractPeople() {
        return contractPeople;
    }

    public void setContractPeople(String contractPeople) {
        this.contractPeople = contractPeople;
    }

    @NotNull(message = "企业状态不能为空")
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getAccountFlag() {
        return accountFlag;
    }

    public void setAccountFlag(Integer accountFlag) {
        this.accountFlag = accountFlag;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    @Override
    public String toString() {
        return "SysCompany{" +
                "id=" + id +
                ", companyId=" + companyId +
                ", companyName='" + companyName + '\'' +
                ", deptId='" + deptId + '\'' +
                ", deptName='" + deptName + '\'' +
                ", uniformCode='" + uniformCode + '\'' +
                ", contractPhone='" + contractPhone + '\'' +
                ", licenseNo='" + licenseNo + '\'' +
                ", contractPeople='" + contractPeople + '\'' +
                ", status=" + status +
                ", address='" + address + '\'' +
                ", accountFlag=" + accountFlag +
                '}';
    }
}
